﻿using System;
using System.Diagnostics;

namespace Ayatta.Common.Extensions
{
    public static class GuidExtension
    {
        /// <summary>
        /// 校验Guid是否为空
        /// </summary>
        /// <param name="target">Guid</param>
        /// <returns>ture:空;false:非空</returns>
        [DebuggerStepThrough]
        public static bool IsEmpty(this Guid target)
        {
            return target == Guid.Empty;
        }
    }
}